//
//  KNView.h
//

#import <UIKit/UIKit.h>


/**
 * 通用view
 */
@protocol KNViewDelegate;
@interface KNView : UIView

@property(nonatomic, assign)id<KNViewDelegate>kn_delegate;


@property (nonatomic, copy) void (^clickBlock)(KNView *view, int index);



/**
 * init with frame & backgroundColor
 */
- (instancetype)initWithFrame:(CGRect)frame backgroundColor:(UIColor *)backgroundColor;


@end

@protocol KNViewDelegate <NSObject>
@optional;
#pragma mark - KNViewDelegate Delegate
/**
 * 数据发布底部 点击了
 */
- (void)mKNViewDelegate_didClickView:(KNView *)view index:(int)index;

@end
